package com.itheima.equals;

import java.util.Scanner;

public class Demo7equals {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入");
        String d = sc.nextLine();

        String[] arr ={"TMD","SB","sb","Tmd","tmd","nmsl","滚","大坑比"};
        String d1 = d;
        for (int i = 0; i < arr.length; i++) {
            d1 = d1.replace(arr[i],"***");

        }
        System.out.println(d1);
    }
}
